﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace QuickApp.Helpers
{
    public static class IEnumerableHelper
    {
        public static bool IsNullOrEmpty<T>(this IEnumerable<T> test)
        {
            return test == null || test.Count() == 0;
        }
        public static bool In<T>(this T check, params T [] thisList) where T : class
        {
            return thisList.Any(itm => itm.Equals(check));
        }
    }
}
